'use strict';

const log = require('npmlog')

// console.log(process.env)
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'; // 判断 debugger 模式
log.addLevel('success', 2000, { fg: 'green', bold: true }); // 自定义级别

module.exports = log;